//
//  WenjianViewController.m
//  book
//
//  Created by KL on 16/12/12.
//  Copyright © 2016年 huangfeng. All rights reserved.
//

#import "WenjianViewController.h"

@interface WenjianViewController ()<UIPageViewControllerDelegate,UIPageViewControllerDataSource>
{
    UIPageViewController *pageView;
}
@end

@implementation WenjianViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    pageView = [[UIPageViewController alloc]initWithTransitionStyle:UIPageViewControllerTransitionStyleScroll navigationOrientation:UIPageViewControllerNavigationOrientationHorizontal options:@{UIPageViewControllerOptionSpineLocationKey:@(UIPageViewControllerSpineLocationNone)}];
    pageView.dataSource = self;
    pageView.delegate = self;
    [self addChildViewController:pageView];
    pageView.view.frame = self.view.bounds;
    [self.view addSubview:pageView.view];
    
//    CGRect rect = [self.text boundingRectWithSize:CGSizeMake(<#CGFloat width#>, <#CGFloat height#>) options:<#(NSStringDrawingOptions)#> attributes:<#(nullable NSDictionary<NSString *,id> *)#> context:<#(nullable NSStringDrawingContext *)#>];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
